package com.lyl.servicestatistics.cloudclient;

import com.lyl.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用 vod 服务的接口
 * 服务熔断
 */
@FeignClient(name = "service-order",fallback = OrderDegradeFeignClient.class)
@Component
public interface OrderClient {

    @GetMapping("/serviceorder/order/getOrderCountByDay/{date}")
     R getOrderCountByDay(@PathVariable("date") String date);
}